<?php
/**
 * Short Description  
 *
 * Long Description 
 *
 * @copyright 
 * @version   $Id: ResourceDAO.php 12 2011-04-09 08:58:51Z sandeep.manne@gmail.com $
 */

require_once 'Core/DAO.php';

class ResourceDAO extends Core_DAO
{
	private $_name    = 'resource_module';
	private $_primary = 'module_id';
	
	public function addResource($resourceDetails)
	{
		$this->insert($resourceDetails);
	}
	
	
	public function getResource()
	{
		return $this->select()
			 		->from($this->_name)
			 		->query()
			 		->fetchAll();
	}
}